/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link nlhassp}.
 * </p>
 *
 * @author    Thi
 * @see       nlhassp
 * @generated
 */
public class nlhasspWrapper implements nlhassp, ModelWrapper<nlhassp> {
	public nlhasspWrapper(nlhassp nlhassp) {
		_nlhassp = nlhassp;
	}

	public Class<?> getModelClass() {
		return nlhassp.class;
	}

	public String getModelClassName() {
		return nlhassp.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("maNLSP", getMaNLSP());
		attributes.put("maNguyenLieu", getMaNguyenLieu());
		attributes.put("maQC", getMaQC());
		attributes.put("quyCach", getQuyCach());
		attributes.put("tieuChiKiemTra", getTieuChiKiemTra());
		attributes.put("cachKiemTra", getCachKiemTra());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long maNLSP = (Long)attributes.get("maNLSP");

		if (maNLSP != null) {
			setMaNLSP(maNLSP);
		}

		String maNguyenLieu = (String)attributes.get("maNguyenLieu");

		if (maNguyenLieu != null) {
			setMaNguyenLieu(maNguyenLieu);
		}

		String maQC = (String)attributes.get("maQC");

		if (maQC != null) {
			setMaQC(maQC);
		}

		String quyCach = (String)attributes.get("quyCach");

		if (quyCach != null) {
			setQuyCach(quyCach);
		}

		String tieuChiKiemTra = (String)attributes.get("tieuChiKiemTra");

		if (tieuChiKiemTra != null) {
			setTieuChiKiemTra(tieuChiKiemTra);
		}

		String cachKiemTra = (String)attributes.get("cachKiemTra");

		if (cachKiemTra != null) {
			setCachKiemTra(cachKiemTra);
		}
	}

	/**
	* Returns the primary key of this nlhassp.
	*
	* @return the primary key of this nlhassp
	*/
	public long getPrimaryKey() {
		return _nlhassp.getPrimaryKey();
	}

	/**
	* Sets the primary key of this nlhassp.
	*
	* @param primaryKey the primary key of this nlhassp
	*/
	public void setPrimaryKey(long primaryKey) {
		_nlhassp.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the ma n l s p of this nlhassp.
	*
	* @return the ma n l s p of this nlhassp
	*/
	public long getMaNLSP() {
		return _nlhassp.getMaNLSP();
	}

	/**
	* Sets the ma n l s p of this nlhassp.
	*
	* @param maNLSP the ma n l s p of this nlhassp
	*/
	public void setMaNLSP(long maNLSP) {
		_nlhassp.setMaNLSP(maNLSP);
	}

	/**
	* Returns the ma nguyen lieu of this nlhassp.
	*
	* @return the ma nguyen lieu of this nlhassp
	*/
	public java.lang.String getMaNguyenLieu() {
		return _nlhassp.getMaNguyenLieu();
	}

	/**
	* Sets the ma nguyen lieu of this nlhassp.
	*
	* @param maNguyenLieu the ma nguyen lieu of this nlhassp
	*/
	public void setMaNguyenLieu(java.lang.String maNguyenLieu) {
		_nlhassp.setMaNguyenLieu(maNguyenLieu);
	}

	/**
	* Returns the ma q c of this nlhassp.
	*
	* @return the ma q c of this nlhassp
	*/
	public java.lang.String getMaQC() {
		return _nlhassp.getMaQC();
	}

	/**
	* Sets the ma q c of this nlhassp.
	*
	* @param maQC the ma q c of this nlhassp
	*/
	public void setMaQC(java.lang.String maQC) {
		_nlhassp.setMaQC(maQC);
	}

	/**
	* Returns the quy cach of this nlhassp.
	*
	* @return the quy cach of this nlhassp
	*/
	public java.lang.String getQuyCach() {
		return _nlhassp.getQuyCach();
	}

	/**
	* Sets the quy cach of this nlhassp.
	*
	* @param quyCach the quy cach of this nlhassp
	*/
	public void setQuyCach(java.lang.String quyCach) {
		_nlhassp.setQuyCach(quyCach);
	}

	/**
	* Returns the tieu chi kiem tra of this nlhassp.
	*
	* @return the tieu chi kiem tra of this nlhassp
	*/
	public java.lang.String getTieuChiKiemTra() {
		return _nlhassp.getTieuChiKiemTra();
	}

	/**
	* Sets the tieu chi kiem tra of this nlhassp.
	*
	* @param tieuChiKiemTra the tieu chi kiem tra of this nlhassp
	*/
	public void setTieuChiKiemTra(java.lang.String tieuChiKiemTra) {
		_nlhassp.setTieuChiKiemTra(tieuChiKiemTra);
	}

	/**
	* Returns the cach kiem tra of this nlhassp.
	*
	* @return the cach kiem tra of this nlhassp
	*/
	public java.lang.String getCachKiemTra() {
		return _nlhassp.getCachKiemTra();
	}

	/**
	* Sets the cach kiem tra of this nlhassp.
	*
	* @param cachKiemTra the cach kiem tra of this nlhassp
	*/
	public void setCachKiemTra(java.lang.String cachKiemTra) {
		_nlhassp.setCachKiemTra(cachKiemTra);
	}

	public boolean isNew() {
		return _nlhassp.isNew();
	}

	public void setNew(boolean n) {
		_nlhassp.setNew(n);
	}

	public boolean isCachedModel() {
		return _nlhassp.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_nlhassp.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _nlhassp.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _nlhassp.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_nlhassp.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _nlhassp.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_nlhassp.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new nlhasspWrapper((nlhassp)_nlhassp.clone());
	}

	public int compareTo(com.portlet.model.nlhassp nlhassp) {
		return _nlhassp.compareTo(nlhassp);
	}

	@Override
	public int hashCode() {
		return _nlhassp.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.portlet.model.nlhassp> toCacheModel() {
		return _nlhassp.toCacheModel();
	}

	public com.portlet.model.nlhassp toEscapedModel() {
		return new nlhasspWrapper(_nlhassp.toEscapedModel());
	}

	public com.portlet.model.nlhassp toUnescapedModel() {
		return new nlhasspWrapper(_nlhassp.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _nlhassp.toString();
	}

	public java.lang.String toXmlString() {
		return _nlhassp.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_nlhassp.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof nlhasspWrapper)) {
			return false;
		}

		nlhasspWrapper nlhasspWrapper = (nlhasspWrapper)obj;

		if (Validator.equals(_nlhassp, nlhasspWrapper._nlhassp)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public nlhassp getWrappednlhassp() {
		return _nlhassp;
	}

	public nlhassp getWrappedModel() {
		return _nlhassp;
	}

	public void resetOriginalValues() {
		_nlhassp.resetOriginalValues();
	}

	private nlhassp _nlhassp;
}